{extend name='public/base' /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <!-- 表单 -->
                <form id="dataForm" class="form-horizontal dataForm" action="" method="post" enctype="multipart/form-data">
                    <!-- 表单字段区域 -->
                    <div class="box-body" style="height: 550px;">
                        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                          <ul class="layui-tab-title">
                            <li class="layui-this">个人信息保护声明</li>
                            <li>个人信息授权与保护声明</li>
                          </ul>
                          <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <script id="protect" name="protect" type="text/plain">{$config.protect|raw|default=''}</script>
                                    </div>
                                </div>
                                <script>
                                    UE.delEditor('protect');
                                    var ue1 = UE.getEditor('protect',{
                                        serverUrl :UEServer,
                                    });
                                    ue1.ready(function() {
                                        ue1.setHeight(250); //设置高度 
                                    });
                                </script>
                            </div>
                            <div class="layui-tab-item">
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <script id="empower" name="empower" type="text/plain">{$config.empower|raw|default=''}</script>
                                    </div>
                                </div>
                                <script>
                                    UE.delEditor('empower');
                                    var ue = UE.getEditor('empower',{
                                        serverUrl :UEServer,
                                    });
                                    ue.ready(function() {
                                        ue.setHeight(250); //设置高度 
                                    });
                                </script>
                            </div>
                          </div>
                        <div>
                    </div>
                    <!-- 表单底部 -->
                    <div class="box-footer">
                        {:token()}
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <div class="btn-group">
                                <button type="submit" class="btn flat btn-info dataFormSubmit">
                                    保存
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
<script>
    /** 表单验证 **/
    $('#dataForm').validate({
        rules: {
                'integral_rule': {
                required: true,
            },
        },
        messages: {
                'integral_rule': {
        required: "请输入积分规则",
    },
        }
    });
</script>
{/block}